package ursaminor.lazywork.common.constant;

public class GlobalConstants {
	
	/**
	 * 系统编码
	 */
	public static final String SYS_ENCODING = "utf-8";
	
	/**
	 * 响应类型
	 */
	public static final String CONTENT_TYPE_JSON = "application/json;utf-8";
	public static final String CONTENT_TYPE_HTML = "text/html;charset=utf-8";
	
	/**
	 * 当前用户
	 */
	public static final String CURR_ACC_INFO = "curr_acc_info";
	
	/**
	 * 角色标识
	 */
	public static final String SUPER_ADMIN = "super_admin";
	public static final String SUB_ADMIN = "sub_admin";
	public static final String DOMAIN_MANAGER = "domain_manager";
	public static final String DOMAIN_OPERATOR = "domain_operator";
	
	public static final String MANAGER_ROLE_ID = "manager";
	public static final String CUSTOMER_ROLE_ID = "customer";
	
	/**
	 * 操作结果
	 */
	public static final String OPERATE_STATE = "state";
	public static final String OPERATE_SUCCESS = "success";
	public static final String OPERATE_FAILURE = "failure";
	public static final String OPERATE_ENTITYID = "entityid";	
	public static final String OPERATE_ENTITYSIZE = "entitysize";	
	public static final String OPERATE_MESSAGE = "message";
	public static final String OPERATE_SAMENAMEPASS = "samenamepass";
	public static final String OPERATE_DOMAINIDERROR = "domainiderror";
	public static final String OPERATE_DEVICESNEXISTS = "devicesnexists";
	public static final String OPERATE_ITEM_EXISTS = "itemexists";
	
	/**
	 * MAPPER DEFINE
	 */
	public static final String FIND_DEVICE_BY_ID = "findDeviceByID";	

	/**
	 * 日期格式化 
	 */
	public static final String FORMAT_DATE = "yyyy-MM-dd HH:mm:ss";
	public static final String SHORT_FORMAT_DATE = "yyyy-MM-dd";
	
	/**
	 * 预览与下载服务地址
	 */
	public static String SERVER_IP_ADDRESS = "";

	/**
	 * 推送地址
	 */
	public static String FILE_SAVE_PATH = "";

	/**
	 * 推送地址
	 */
	public static String PUSH_API_PATH = "";

	/**
	 * 邮件发送配置
	 */
	public static String EMAIL_FROM = "";
	public static String EMAIL_HOST = "";
	public static String EMAIL_USERNAME = "";
	public static String EMAIL_PASSWORD = "";
	
	/**
	 * 参数加密key
	 */
	public static String SECURITY_KEY = "";

	/**
	 * 服务器地址
	 */
	public static String SERVER_PATH_HEAD = "";
	
	public void setPushApiPath(String pushApiPath) {
		PUSH_API_PATH = pushApiPath;
	}
	
	public void setServerIpAddress(String serverIpAddress) {
		SERVER_IP_ADDRESS = serverIpAddress;
	}
	
	public void setFileSavePath(String fileSavePath) {
		FILE_SAVE_PATH = fileSavePath;
	}

	public void setEmailFrom(String emailFrom) {
		EMAIL_FROM = emailFrom;
	}
	
	public void setEmailHost(String emailHost) {
		EMAIL_HOST = emailHost;
	}
	
	public void setEmailUsername(String emailUsername) {
		EMAIL_USERNAME = emailUsername;
	}
	
	public void setEmailPassword(String emailPassword) {
		EMAIL_PASSWORD = emailPassword;
	}

	public void setSecurityKey(String securityKey) {
		SECURITY_KEY = securityKey;
	}

	public void setServerPathHead(String serverPathHead) {
		SERVER_PATH_HEAD = serverPathHead;
	}
}
